<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
    <head>
            <meta charset="utf-8">
            <title>充值</title>
            <meta http-equiv="Content-type" content="text/html; charset=utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta http-equiv="Cache-Control" content="no-transform" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
            <meta name="apple-mobile-web-app-status-bar-style" content="black">
            <meta name="renderer" content="webkit">
            <!--uc浏览器判断到页面上文字居多时，会自动放大字体优化移动用户体验。添加以下头部可以禁用掉该优化-->
            <meta name="wap-font-scale" content="no">
            <meta content="telephone=no" name="format-detection"/>
            <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
            <link rel="stylesheet" type="text/css" href="/majiang/Public/home/css/mian.css"/>
            <script type="text/javascript" src="/majiang/Public/home/js/jquery-1.10.2.min.js"></script>
            <script src="/majiang/Public/home/js/html5.js" type="text/javascript" charset="utf-8"></script>
            <script>
            	 (function (doc, win) {
					var docEl = doc.documentElement,
					resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',         
					recalc = function () {
					  var clientWidth = docEl.clientWidth;
					  <!--
					  /*自加*/
					  clientWidth = document.documentElement ? document.documentElement.clientWidth : document.body.clientWidth;
					  if (clientWidth > 720) clientWidth = 720;
					  /*自加*/
					  -->
					  if (!clientWidth) return;
					  docEl.style.fontSize = 20 * (clientWidth / 720) + 'px';
					};
					  if (!doc.addEventListener) return;
					  win.addEventListener(resizeEvt, recalc, false);
					  doc.addEventListener('DOMContentLoaded', recalc, false);
				})(document, window);
            </script>
    </head>
    
    <body>
    	<div class="box">
            <header class="head">
            	<a href="<?php echo U('index/index');?>"></a>
                <h4>充值</h4>
            </header>
			<!--
            <div class="chongzhi_bg">
            	<h4>
            		<input type="text" value="" placeholder="请输入充值金额"/>
            	</h4>
            </div>
			-->
            <div class="chongzhi_je c">
            	<input type="hidden" value="" class="qianshu"/>
            	<ul>
            		<li data="5" class="link">5元</li>
            		<li data="10">10元</li>
            		<li data="20">20元</li>
            		<li data="50">50元</li>
            		<li data="100">100元</li>
            		<li data="150">150元</li>
            		<li data="200">200元</li>
            		<li data="250">250元</li>
            		<li data="300">300元</li>
            	</ul>
            </div>
            <div>
	            <div class="chongzhi_wx c">
	            	<i>
	            		<img src="/majiang/Public/home/images/ld_weixin_logo_31.png" />
	            	</i>
	            	<em>微信支付</em>
	            </div>
            </div>
            <div class="chongzhi_btn">
            	<span>
            		<i onclick="chongzhi()">充值</i>
            	</span>
            </div>
        </div>
    </body>
</html>
<script>
	$(".chongzhi_je ul li").click(function(){
		$(this).addClass('link').siblings().removeClass('link');
		var _data = $(this).attr('data');
		var aaa = $(this).parent('ul').siblings('.qianshu').val();
		aaa=_data;
	});
    //充值

    function chongzhi(){
            var jine=$(".link").attr('data');
            location.href="<?php echo (C("WEB_URL")); ?>index.php?m=Home&c=Index&a=weixinpay&jine="+jine+"&zt=1";
    }
</script>